﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="demoImageList_ItemTemplate.aspx.cs" Inherits="CSS_ImageList_demoImageList_ItemTemplate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/demoImageList.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <div class="item-list clearfix">
        <asp:Repeater ID="Repeater1" runat="server">
          <ItemTemplate>
            <div class="item">
              <p class="thumb">
                <asp:Image ID="tfIMAGE" ImageUrl='<%# AspxConverter.FileNameToImageUrl(Eval("IMAGE_FILE_NAME")) %>' runat="server" />
              </p>  
              
              <p class="description">
                <strong><%# Eval("DESCRIPTION") %></strong>
              </p>
              
              <p class="total">
                總數量 : <strong><%# Eval("TOTAL") %></strong>
              </p>
              
              <p class="commands">
                  <strong>
                  <asp:LinkButton runat="server" ID="BtnEdit" Text="編輯" CommandName="Edit" CausesValidation="false" />
                  <asp:Label ID="lbVerticalBar" runat="server" Text="|"></asp:Label>
                  <asp:LinkButton runat="server" ID="BtnDelete" Text="刪除" CommandName="Delete" CausesValidation="false"
                    OnClientClick="return confirm('是否確定要刪除？');" />            
                  </strong>
	          </p>
            </div>
          </ItemTemplate>
        </asp:Repeater>
        
      </div><%--item-list--%>
      
    </div>
    </form>
</body>
</html>
